From 9c881a8b3969110192d83d746f9f407e7dcf654d Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 23 Feb 2012 09:59:35 +0000 Subject: [PATCH] xen: add missing unlock from gnttab_get_version Signed-off-by: Ian Campbell Reported-by: Francisco Rocha Committed-by: Keir Fraser --- xen/common/grant_table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 9defa4d74c..4d637833d6 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -2321,6 +2321,8 @@ gnttab_get_version(XEN_GUEST_HANDLE(gnttab_get_version_t uop)) op.version = d->grant_table->gt_version; spin_unlock(&d->grant_table->lock); + rcu_unlock_domain(d); + if ( copy_to_guest(uop, &op, 1) ) return -EFAULT; -- 2.30.2